package cn.wolfcode.cms.mapper;

import cn.wolfcode.cms.domain.Employee;
import cn.wolfcode.cms.domain.Product;
import cn.wolfcode.cms.query.ProductQueryObject;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Product record);

    Product selectByPrimaryKey(Long id);

    List<Product> selectAll();

    int updateByPrimaryKey(Product record);

    int queryForCount(ProductQueryObject qo);

    List<Employee> queryForList(ProductQueryObject qo);

    List<String> getTotalNumber();

    List<String> totalAmount();

    Object getProductByPsName(String name);

    List<String> getIntegral();


    List<String> getFirstLevel();


    Product getProductByName(String name);

    Long getIdByName(String producrName);
}